package easymall.po;

import java.sql.Timestamp;
import java.text.SimpleDateFormat;

public class Order {
	private String id;
	private Double money;
	private String receiverinfo;
	private String state;  //订单状态
	private Timestamp ordertime;
	private Integer user_id;
	private String expressnumber; //发货单号
	
	public Order() {}
	
	public Order(String id, String expressnumber) {
		this.id = id;
		this.expressnumber = expressnumber;
	}
	
	public Order(String id, Double money, String receiverinfo, String state, Timestamp ordertime, Integer user_id) {
		this.id = id;
		this.money = money;
		this.receiverinfo = receiverinfo;
		this.state = state;
		this.ordertime = ordertime;
		this.user_id = user_id;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public Double getMoney() {
		return money;
	}
	public void setMoney(Double money) {
		this.money = money;
	}
	public String getReceiverinfo() {
		return receiverinfo;
	}
	public void setReceiverinfo(String receiverinfo) {
		this.receiverinfo = receiverinfo;
	}
	public Timestamp getOrdertime() {
		return ordertime;
	}
	public void setOrdertime(Timestamp ordertime) {
		this.ordertime = ordertime;
	}
	public Integer getUser_id() {
		return user_id;
	}
	public void setUser_id(Integer user_id) {
		this.user_id = user_id;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getExpressnumber() {
		return expressnumber;
	}

	public void setExpressnumber(String expressnumber) {
		this.expressnumber = expressnumber;
	}
	
	public String getOrdertimestr() {
		return new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(this.ordertime);
	}
	
}
